package learning.designpatterns.builder.vehiclebuilder;

import learning.designpatterns.builder.vehicle.Vehicle;
import learning.designpatterns.builder.vehicle.VehicleType;

public class CarBuilder extends VehicleBuilder {


    public CarBuilder() {
        vehicle = new Vehicle(VehicleType.CAR);
    }

    @Override
    public void buildEngine() {
        vehicle.addPart("engine", "car engine");
    }

    @Override
    public void buildWheels() {
         vehicle.addPart("wheels", "car wheels");
    }
}
